package oop4;

/**
 * @author oldliu
 * @since 1.0
 */
public class Tiger extends Pet {
    public Tiger(){

    }
    public Tiger(String name, int love, int health, String sex) {
        super(name, love, health, sex);
    }
    public void eatPeople(String n){
        System.out.println("老虎"+getName()+"吃了"+n);
    }

    @Override
    public void print() {
        System.out.println("这是一只老虎");
        super.print();
    }
}
